package com.hdaccp.dao;

import java.io.Serializable;
import java.util.List;
import java.util.Map;


/**
 * ͨ��JDBC�ӿ�
 * @author SUNNY
 *
 */
public interface CommonDao<E,PK extends Serializable> {
	//��ѯȫ��
	public List<E> getAll();
	//��������ѯ
	public E getById(PK id);
	//����
	public boolean add(E entity);
	//�޸�
	public boolean update(E entity);
	//ɾ��
	public boolean deleteById(PK id);
}












